import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { PaymentSettingsPage } from './payment-settings.page';
import { PaymentSettingsResolver } from './payment-settings-resolver.service';
const routes: Routes = [
  {
    path: '',
    component: PaymentSettingsPage,
    resolve: {
      data:PaymentSettingsResolver
    }
  },
  {
    path: 'payment-password',
    loadChildren: () => import('./payment-password/payment-password.module').then( m => m.PaymentPasswordPageModule)
  },
  {
    path: 'free-payment',
    loadChildren: () => import('./free-payment/free-payment.module').then( m => m.FreePaymentPageModule)
  },
  {
    path: 'deduction-order',
    loadChildren: () => import('./deduction-order/deduction-order.module').then( m => m.DeductionOrderPageModule)
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: [
    PaymentSettingsResolver
  ]
})
export class PaymentSettingsPageRoutingModule {}
